<?php 
/* SVN FILE: $Id$ */
/* Programa Test cases generated on: 2009-10-31 15:35:06 : 1257014106*/
App::import('Model', 'Programas.Programa');

class ProgramaTestCase extends CakeTestCase {
	var $Programa = null;
	var $fixtures = array('plugin.programas.programa');

	function startTest() {
		$this->Programa =& ClassRegistry::init('Programa');
	}

	function testProgramaInstance() {
		$this->assertTrue(is_a($this->Programa, 'Programa'));
	}

	function testProgramaFind() {
		$this->Programa->recursive = -1;
		$results = $this->Programa->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Programa' => array(
			'id'  => 1,
			'title'  => 'Lorem ipsum dolor sit amet',
			'contenido'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'dias'  => 'Lorem ipsum dolor sit amet',
			'horario_inicio'  => '15:35:05',
			'horario_fin'  => '15:35:05'
		));
		$this->assertEqual($results, $expected);
	}
}
?>